package com.example.service.statistics.impl;
/*
 *  @ClassName:ProductHitsServiceImpl
 *  @Author:WZ
 *  @DateTime:2023/1/31/11:25
 *  商品统计--商品点赞热度
 */

import com.example.dao.statistics.ProductHitsDao;
import com.example.pojo.Product;
import com.example.service.statistics.ProductHitsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class ProductHitsServiceImpl implements ProductHitsService {
    @Autowired
    private ProductHitsDao productHitsDao;
    @Override
    public List<Product> getProductHitsZj7t() {
        return productHitsDao.getProductHitsZj7t();
    }

    @Override
    public List<Product> getProductHitsZj30t() {
        return productHitsDao.getProductHitsZj30t();
    }

    @Override
    public List<Product> getProductHitsZj90t() {
        return productHitsDao.getProductHitsZj90t();
    }

    @Override
    public List<Product> getProductHits() {
        return productHitsDao.getProductHits();
    }

    @Override
    public List<Product> getProductHitsLike(String s1, String s2) {
        return productHitsDao.getProductHitsLike(s1,s2);
    }
}
